from __future__ import unicode_literals
from django.db import models


# Create your models here.
import os
# Create your models here.
class user(models.Model):
    phoneNumber=models.CharField(max_length=32,primary_key=True,default='')
    password=models.CharField(max_length=32)
    level=models.IntegerField(default=0)
    endDate=models.CharField(max_length=32)
    
class predict(models.Model):
    stockNum=models.CharField(max_length=32,primary_key=True,default='')
    name=models.BinaryField(null=True)
    predictDate=models.CharField(max_length=32)
    predict=models.IntegerField(default=0)
    
class subscription(models.Model):
    phoneNumber=models.CharField(max_length=32,default='')
    stockNum=models.CharField(max_length=32)
    
class historydata(models.Model):
    stockNum=models.CharField(max_length=32,default='')
    name=models.BinaryField(null=True)
    Date=models.CharField(max_length=32)
    predict=models.IntegerField(default=0)
    real=models.IntegerField(default=0)
    openPrice=models.FloatField(default=0)
    closePrice=models.FloatField(default=0)
    
    